package cc.autoapi.pucong.auto.flow.persistence.repository.log;

import cc.autoapi.pucong.auto.flow.core.flow.execNode.selfenum.RunStatusEnum;
import cc.autoapi.pucong.auto.flow.persistence.po.log.ApiInstanceNodePo;

import java.util.Date;
import java.util.List;

/**
 * @author pucong
 * @description 项目接口实例节点日志 service接口
 * @create 2024-10-07
 */
public interface ApiInstanceNodeService {

    void updateNodeStatus(String apiId, String instanceId, String nodeId, String instanceNodeId, RunStatusEnum runStatus, Date createTime);

    void appendApiNodeLog(String apiInstanceId, String apiNodeInstanceId, String logContent);

    void deleteByApiId(List<String> ids);

    List<ApiInstanceNodePo> list(String apiId, String apiNodeId, String apiInstanceId);

    ApiInstanceNodePo getOne(String instancesId, String apiNodeId);
}
